/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package py.com.sole.solesys;

import java.io.Serializable;
import java.util.List;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

import py.com.sole.dao.DaoFactory;
import py.com.sole.model.TipoDocumento;

/**
 *
 * @author bala
 */
@ManagedBean
@SessionScoped
public class TipoDocumentoBean implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int id;
	private String descripcion;
    private List<TipoDocumento> listDocumento;
    /**
     * Creates a new instance of TipoDocumentoBean
     */
    public TipoDocumentoBean() {
        listDocumento = DaoFactory.getTipoDocumento().getListTipoDocumento();
    }

    public List<TipoDocumento> getListDocumento() {
    	listDocumento = DaoFactory.getTipoDocumento().getListTipoDocumento();
        return listDocumento;
    }

    public void setListDocumento(List<TipoDocumento> listDocumento) {
        this.listDocumento = listDocumento;
    }

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getDescripcion() {
		return descripcion;
	}

	public void setDescripcion(String descripcion) {
		this.descripcion = descripcion;
	}
    
}
